package day5;
import java.io.*;
/**
 * @author oldliu
 * @since 1.0
 */
public class FileTest4 {
    public static void main(String[] args) {
        //相对路径
//        File f=new File("java高级/src/day5/FileTest4.java");
//        System.out.println(f.getAbsolutePath());
//        System.out.println("大小："+f.length());

        File f2=new File("D:\\Documents\\桌面\\cpu-z");
        boolean b = f2.renameTo(new File("F:\\fff"));
        System.out.println(b);

    }
}
